package com.example.demo_spring.aop.simulation;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

//@SpringBootApplication
public class Main {

    public static void main(String[] args) {
//        Target t = new TargetChild();
//        t.dosth();

        ConfigurableApplicationContext context =
                SpringApplication.run(Main.class, args);
        System.out.println("SpringApplication.run done!");

        Target t = (Target) context.getBean("target");
        t.dosth();
    }
}
